home *** CD-ROM | disk | FTP | other *** search
- Path: news.ichange.com!newsmaster
- From: Jesse Liberty <jl@staff.ichange.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Can you overload a constructor?
- Date: Thu, 14 Mar 1996 10:35:56 -0500
- Organization: AT&T
- Message-ID: <31483CDC.4B0C@staff.ichange.com>
- References: <Do859K.K9B@watserv3.uwaterloo.ca>
- NNTP-Posting-Host: 140.244.99.60
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
- CC: jl@staff.ichange.com
-
- jfournie@sciborg.uwaterloo.ca wrote:
- >
- > Greetings,
- >
- > I am new to C++ and just wanted to make sure it
- > was OK to overload a constructor. gnu c++
- > doesn't have a problem with it, but is it normally
- > done?
- > It most certainly is very normal. The purpose of a constructor is to
- create a valid object. Often there is more than one way to do this; for
- example you can imagine a rectangle object which can be initialized
- either with a point indicating its upper left corner and its width and
- length, or with 2 points indicating upper left and lower right.
-
-
-
- --
- ------
- Jesse Liberty [AT&T New Media Services]
- jl@staff.ichange.com ZDNet: 72241,72
- Teach Yourself C++ In 21 Days. Sams 1994
- Teach Yourself MORE C++ In 21 Days. Sams 1996
- Teach Yourself ANSI C++ In 21 Days. Sams 1996
- C++: An Introduction To Programming. Que 1996
-